package com.celesea.configuration.security.bean;

import java.io.Serializable;

public class User implements Serializable {

    private long id;

    private String account;

    private String name;

    private long brandId;

    private String brandName;

    private String brandAddress;

    private int brandVersion;

    private long shopId;

    private String shopName;

    private String shopAddress;

    private int shopVersion;

    private String password;

    private String salt;

    private int enabled;

    /**
     * 归属
     */
    private Integer assignedGroup;
    /**
     * 账号归属ID
     */
    private Long assignedId;

    /** 头像 **/
    private String icon;

    /** 角色名称 **/
    private String roleName;

    /** 角色编码 **/
    private String roleCode;

    private boolean isDefaultPassword = false;

    private int brandEnabled;

    private String shopEnabled;

    private int source;

    /** 移动门店版本 **/
    private int portalVersion;


    public int getPortalVersion() {
        return portalVersion;
    }

    public void setPortalVersion(int portalVersion) {
        this.portalVersion = portalVersion;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public User() {
        super();
    }

    public User(String password, String salt) {
        this.password = password;
        this.salt = salt;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getBrandId() {
        return brandId;
    }

    public void setBrandId(long brandId) {
        this.brandId = brandId;
    }

    public long getShopId() {
        return shopId;
    }

    public void setShopId(long shopId) {
        this.shopId = shopId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public int getEnabled() {
        return enabled;
    }

    public void setEnabled(int enabled) {
        this.enabled = enabled;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getBrandAddress() {
        return brandAddress;
    }

    public void setBrandAddress(String brandAddress) {
        this.brandAddress = brandAddress;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public boolean isDefaultPassword() {
        return isDefaultPassword;
    }

    public void setIsDefaultPassword(boolean isDefaultPassword) {
        this.isDefaultPassword = isDefaultPassword;
    }

    public int getBrandVersion() {
        return brandVersion;
    }

    public void setBrandVersion(int brandVersion) {
        this.brandVersion = brandVersion;
    }

    public int getShopVersion() {
        return shopVersion;
    }

    public void setShopVersion(int shopVersion) {
        this.shopVersion = shopVersion;
    }

    public String getShopEnabled() {
        return shopEnabled;
    }

    public void setShopEnabled(String shopEnabled) {
        this.shopEnabled = shopEnabled;
    }

    public int getBrandEnabled() {
        return brandEnabled;
    }

    public void setBrandEnabled(int brandEnabled) {
        this.brandEnabled = brandEnabled;
    }

    public void setDefaultPassword(boolean defaultPassword) {
        isDefaultPassword = defaultPassword;
    }

    public Long getAssignedId() {
        return assignedId;
    }

    public void setAssignedId(Long assignedId) {
        this.assignedId = assignedId;
    }

    public Integer getAssignedGroup() {
        return assignedGroup;
    }

    public void setAssignedGroup(Integer assignedGroup) {
        this.assignedGroup = assignedGroup;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("User{");
        sb.append("id=").append(id);
        sb.append(", account='").append(account).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", brandId=").append(brandId);
        sb.append(", brandName='").append(brandName).append('\'');
        sb.append(", brandAddress='").append(brandAddress).append('\'');
        sb.append(", brandVersion=").append(brandVersion);
        sb.append(", shopId=").append(shopId);
        sb.append(", shopName='").append(shopName).append('\'');
        sb.append(", shopAddress='").append(shopAddress).append('\'');
        sb.append(", shopVersion=").append(shopVersion);
        sb.append(", password='").append(password).append('\'');
        sb.append(", salt='").append(salt).append('\'');
        sb.append(", enabled=").append(enabled);
        sb.append(", icon='").append(icon).append('\'');
        sb.append(", roleName='").append(roleName).append('\'');
        sb.append(", isDefaultPassword=").append(isDefaultPassword);
        sb.append(", brandEnabled=").append(brandEnabled);
        sb.append(", shopEnabled='").append(shopEnabled).append('\'');
        sb.append('}');
        return sb.toString();
    }



}